package top.xunfong.api.probe.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
//import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
public class Probe implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @NotNull(message = "[id]不能为空")
    @TableId(value = "id", type = IdType.AUTO)
//    @Schema(description = "id")
    private Long id;
    /**
     * 用户id
     */
//    @Schema(description = "用户id")
    private Long userId;
    /**
     *
     */
//    @Schema()
    private Date logTime;
    /**
     *
     */
//    @Schema()
    private Date createTime;
    /**
     *
     */
    @Size(max = 50, message = "编码长度不能超过50")
//    @Schema()
    @Length(max = 50, message = "编码长度不能超过50")
    private String createBy;
    /**
     *
     */
//    @Schema()
    private Date updateTime;
    /**
     *
     */
    @Size(max = 50, message = "编码长度不能超过50")
//    @Schema()
    @Length(max = 50, message = "编码长度不能超过50")
    private String updateBy;
}
